Skip to content

fix: cli info handles not found without showing error message#1247

Open
matthewlouisbrockman wants to merge 2 commits intomainfrom
cleaner-cli-sandbox-info-not-found
Open

fix: cli info handles not found without showing error message#1247
matthewlouisbrockman wants to merge 2 commits intomainfrom
cleaner-cli-sandbox-info-not-found

Conversation

@matthewlouisbrockman
Copy link
Copy Markdown
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Apr 1, 2026

Handles sandbox not found on cli info

Prior Behavior:

(searching for nonexistant iqe4cs0bcml3lf3hp5e3eef)

$ e2b sandbox info iqe4cs0bcml3lf3hp5e3eef
qr [SandboxNotFoundError]: Sandbox iqe4cs0bcml3lf3hp5e3eef not found
at Function.getFullInfo (/.../v20.20.0/lib/node_modules/@e2b/js-sdk/src/sandbox/sandboxApi.ts:565:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t. (/.../node/v20.20.0/lib/node_modules/@e2b/cli/src/commands/sandbox/info.ts:53:20)
at async t.parseAsync (/.../node/v20.20.0/lib/node_modules/node_modules/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js:936:5)
at async EIe (/.../versions/node/v20.20.0/lib/node_modules/@e2b/cli/src/index.ts:36:3

Fixed:

$ e2b sandbox info iqe4cs0bcml3lf3hp5e3eef
Sandbox iqe4cs0bcml3lf3hp5e3eef wasn't found

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

🦋 Changeset detected

Latest commit: d86ffbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@e2b/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 1, 2026

PR Summary

Low Risk
Low risk CLI-only change that adjusts error handling for a specific not-found case; behavior change is limited to how errors are surfaced to users.

Overview
Improves e2b sandbox info error handling by catching NotFoundError from the SDK and printing a clean "Sandbox wasn't found" message instead of a stack trace, while still exiting non-zero.

Adds a changeset to publish a @e2b/cli minor release for the updated CLI output behavior.

Written by Cursor Bugbot for commit d86ffbd. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Package Artifacts

Built from bc7c6e3. Download artifacts from this workflow run.

JS SDK (e2b@2.18.1-cleaner-cli-sandbox-info-not-found.0):

npm install ./e2b-2.18.1-cleaner-cli-sandbox-info-not-found.0.tgz

CLI (@e2b/cli@2.9.1-cleaner-cli-sandbox-info-not-found.0):

npm install ./e2b-cli-2.9.1-cleaner-cli-sandbox-info-not-found.0.tgz

Python SDK (e2b==2.19.0+cleaner-cli-sandbox-info-not-found):

pip install ./e2b-2.19.0+cleaner.cli.sandbox.info.not.found-py3-none-any.whl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants